from db import DB
from nlu import NLU

if __name__ == "__main__":
    db = DB(False)
    n = NLU(False, db)
    print "use q to quit"
    while True:
        text = raw_input("Sentence: ").lower()
        if text == 'q':
            break
        print n.chunk(text)
